package com.gnerv.cms.dto;

import com.alibaba.fastjson.JSON;
import com.gnerv.cms.entity.Article;
import com.gnerv.cms.entity.Content;

import java.io.Serializable;

/**
 * <p>
 * CMS平台-文章DTO
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-01
 */
public class ArticleDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 栏目主键
     */
    private String cId;

    /**
     * 文章实体
     */
    private Article article;

    /**
     * 内容实体
     */
    private Content content;

    public ArticleDTO() {
    }

    public String getcId() {
        return cId;
    }

    public void setcId(String cId) {
        this.cId = cId;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public Content getContent() {
        return content;
    }

    public void setContent(Content content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
